package cn.org.guhao.practice.go.model;

import java.math.BigDecimal;
import java.util.Date;

public class Loan {

  private String id;
  private Integer ovdDays;
  private BigDecimal rate;
  private Date startDate;
  private BigDecimal amount;

  public Loan(String id, Integer ovdDays, BigDecimal rate, Date startDate, BigDecimal amount) {
    this.id = id;
    this.ovdDays = ovdDays;
    this.rate = rate;
    this.startDate = startDate;
    this.amount = amount;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Integer getOvdDays() {
    return ovdDays;
  }

  public void setOvdDays(Integer ovdDays) {
    this.ovdDays = ovdDays;
  }

  public BigDecimal getRate() {
    return rate;
  }

  public void setRate(BigDecimal rate) {
    this.rate = rate;
  }

  public Date getStartDate() {
    return startDate;
  }

  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  @Override
  public String toString() {
    return "Loan{" +
        "id='" + id + '\'' +
        ", ovdDays=" + ovdDays +
        ", rate=" + rate +
        ", startDate=" + startDate +
        ", amount=" + amount +
        '}';
  }
}
